package com.oa.xinxi.dao;

import com.oa.xinxi.entity.AuthRolesKey;
import org.apache.ibatis.jdbc.SQL;

public class AuthRolesSqlProvider {

    public String insertSelective(AuthRolesKey record) {
        SQL sql = new SQL();
        sql.INSERT_INTO("auth_roles");
        
        if (record.getRolesId() != null) {
            sql.VALUES("roles_id", "#{rolesId,jdbcType=INTEGER}");
        }
        
        if (record.getAuthId() != null) {
            sql.VALUES("auth_id", "#{authId,jdbcType=INTEGER}");
        }
        
        return sql.toString();
    }
}